:root {
  --color-text: #213547;
  --color-bg: #f0f2f5;
  --color-link: #646cff;
  --color-link-hover: #747bff;
  --color-btn-bg: #f9f9f9;
  --color-btn-border-hover: #646cff;

  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, #app {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  padding-top: 60px; /* 和导航栏高度一致 */
  background-color: var(--color-bg);
  color: var(--color-text);
}

a {
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--color-btn-bg);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

button:hover {
  border-color: var(--color-btn-border-hover);
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.card {
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  background-color: white;
  color: var(--color-text);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

#app {
  width: 100%;
  margin: 0 auto;
  /* padding: 2rem; */
  text-align: center;
}

